package com.scgl.process.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.scgl.process.mapper.ScglCeaMapper;
import com.scgl.process.domain.ScglCea;
import com.scgl.process.service.IScglCeaService;

/**
 * 产品信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-01
 */
@Service
public class ScglCeaServiceImpl implements IScglCeaService 
{
    @Autowired
    private ScglCeaMapper scglCeaMapper;

    /**
     * 查询产品信息
     * 
     * @param processName 产品信息主键
     * @return 产品信息
     */
    @Override
    public ScglCea selectScglCeaByProcessName(String processName)
    {
        return scglCeaMapper.selectScglCeaByProcessName(processName);
    }

    /**
     * 查询产品信息列表
     * 
     * @param scglCea 产品信息
     * @return 产品信息
     */
    @Override
    public List<ScglCea> selectScglCeaList(ScglCea scglCea)
    {
        return scglCeaMapper.selectScglCeaList(scglCea);
    }

    /**
     * 新增产品信息
     * 
     * @param scglCea 产品信息
     * @return 结果
     */
    @Override
    public int insertScglCea(ScglCea scglCea)
    {
        return scglCeaMapper.insertScglCea(scglCea);
    }

    /**
     * 修改产品信息
     * 
     * @param scglCea 产品信息
     * @return 结果
     */
    @Override
    public int updateScglCea(ScglCea scglCea)
    {
        return scglCeaMapper.updateScglCea(scglCea);
    }

    /**
     * 批量删除产品信息
     * 
     * @param processNames 需要删除的产品信息主键
     * @return 结果
     */
    @Override
    public int deleteScglCeaByProcessNames(String[] processNames)
    {
        return scglCeaMapper.deleteScglCeaByProcessNames(processNames);
    }

    /**
     * 删除产品信息信息
     * 
     * @param processName 产品信息主键
     * @return 结果
     */
    @Override
    public int deleteScglCeaByProcessName(String processName)
    {
        return scglCeaMapper.deleteScglCeaByProcessName(processName);
    }
}
